﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App.Model
{
    public class SysMenu
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [SugarColumn(ColumnDataType = "VARCHAR(32)")] 
        public string Name { get; set; }

        /// <summary>
        /// 父级菜单   0 顶级菜单
        /// </summary>
        public int Parent { get; set; }

        /// <summary>
        /// 图标编号
        /// </summary>
        public int IconIndex { get; set; }

        /// <summary>
        /// 窗体程序集地址
        /// </summary>
        [SugarColumn(ColumnDataType = "VARCHAR(512)")] 
        public string AssemblyPath { get; set; }

        /// <summary>
        /// 是否禁用 0 启用 1 禁用
        /// </summary>
        public int Disable { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 操作员
        /// </summary>
        public int AddUser { get; set; }

        /// <summary>
        /// 禁用 文字显示
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string ShowDisable { get; set; }

    }
}
